package com.yfp.operation.mapper;

import com.yfp.common.datascope.annotation.DataScope;
import com.yfp.operation.domain.MallOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.dto.EnteringLogisticsSnDTO;
import com.yfp.operation.domain.dto.MallOrderListDTO;
import com.yfp.operation.domain.vo.MallOrderListVO;

import java.util.List;

/**
* @author admin
* @description 针对表【mall_order(商城订单)】的数据库操作Mapper
* @createDate 2025-03-05 11:03:51
* @Entity domain.com.yfp.operation.MallOrder
*/
public interface MallOrderMapper extends BaseMapper<MallOrder> {

    /**
     * 商城订单列表
     * @param mallOrderListDTO
     * @return
     */
    @DataScope(deptAlias = "mp")
    List<MallOrderListVO> mallOrderList(MallOrderListDTO mallOrderListDTO);

    /**
     * 根据商城订单id获取数据
     * @param id
     * @return
     */
    MallOrderListVO getByMallOrderId(Long id);

    /**
     * 录入快递单号
     * @param enteringLogisticsSnDTO
     */
    void enteringLogisticsSn(EnteringLogisticsSnDTO enteringLogisticsSnDTO);

    /**
     * 修改订单状态和物流状态
     * @param mallOrderListVO
     */
    void updateStatusAndLogisticsStatus(MallOrderListVO mallOrderListVO);
}




